#define _CRT_SECURE_NO_WARNINGS
#include"list.h"


void TextList()
{
	ListNode* plist=ListInit();
	/*ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	ListPrintf(plist);*/

	ListPushFront(plist, 0);
	ListPushFront(plist, 1);
	ListPushFront(plist, 2);
	ListPushFront(plist, 3);
	ListPrintf(plist);
	//ListPrintf(plist);
	/*ListPopFront(plist);
	ListPopFront(plist);
	istPopFront(plist);
	ListPrintf(plist);
	/*ListPopBack(plist);
	ListPrintf(plist);
	ListNode* pos = ListFindout(plist, 2);
	ListPrintf(plist);

	ListInsert(pos, 7);
	ListPrintf(plist);
	/*ListNode* pos = ListFindout(plist, 2);
	ListPrintf(plist);

	ListErase(pos);
	ListPrintf(plist);*/

	/*if (pos)
	{
		printf("findout !\n");
	}
	else
	{
		printf("Not findout\n");
	}
	ListPrintf(plist);
*/



	ListDestory(plist);

}

int main()
{
	TextList();
	return 0;
}